package chixing.day07.inherited;

public class Dog extends Animals {
    private String dogType;
    public Dog()
    {
        super();
    }
    public Dog(String dogType)
    {
        super();
        this.dogType = dogType;
    }

    public String getDogType() {
        return dogType;
    }

    public void setDogType(String dogType) {
        this.dogType = dogType;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "dogType='" + dogType + '\'' +
                '}'+ super.toString();
    }
}
